const express=require('express');
const app=express();
const db=require('./model/db.js');
app.get('/',(req,res)=>{
	var obj={
		name:'哈哈',
		num:Math.random()
	}
	db.insert('teacher','tes3',obj,function(err,result){
		res.end(result+'')
	})
})
app.get('/getList',(req,res)=>{
	var obj={
		name:'哈哈',
		num:Math.random()
	}
	db.find('teacher','tes3',{},(err,resule)=>{
		res.end(result+'')
	})
})
app.listen(8989)


// find(dbase,collction,,,callba) 3
// dba  coll   sort  call  4
// dba coll sort  page  limit()  call  5
// arguments
// dba coll sort  page  limit()  call  6
